package newXgame.hall
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class HallMain extends Sprite
	{
		private var sprHall:GameHallMain;		//	大厅界面主程序框架
		private var sprGame:GameRoomMain;		//	游戏房间主程序框架
		
		public function HallMain()
		{
			sprHall = new GameHallMain();
			sprGame = new GameRoomMain();
			
			addChild(sprHall);
			addChild(sprGame);
			
			this.addEventListener(Event.ADDED_TO_STAGE, onShowInStage);
		}		
		
		private function onShowInStage(e:Event):void
		{
			this.stage.align = StageAlign.TOP_LEFT;
		}
	}
}